@extends('layouts.app')

@section('content')
    <div class="training-services-page">
        <div class="policy-service-banner">
            <img src="{{ asset('images/training-services/banner.png') }}" alt="">
        </div>

        <div class="policy-service-content">
            <div class="policy-service-actions">
                <div class="policy-service-type-list">
                    <span>
                        <a href="{{ route('training.index') }}" class="policy-service-type-item">热门活动</a>
                        <a href="{{ route('training.online') }}" class="policy-service-type-item item-active">在线课堂</a>
                    </span>
                </div>
            </div>

            <div class="online-service-list">
                <div>
                    @foreach ($onlines as $online)
                        <div class="online-item">
                            <a href="{{ $online['url'] }}" target="_blank">
                                <img src="{{ asset($online['cover']) }}" alt="" class="online-img">
                            </a>
                            <div class="online-item-info">
                                <p>{{ $online['title'] }}</p>
                            </div>
                        </div>
                    @endforeach
                </div>
                @if ($onlines->hasPages())
                    <div class="paginate">
                        {{ $onlines->links() }}
                    </div>
                @endif
            </div>
        </div>
    </div>
@stop
